<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子03</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
</head>
<body>
    <h1>你好!!!</h1>

    <script type="text/javascript">
        var Parent = Stapes.subclass({
            constructor : function(name) {
                this.name = name;
                console.log( "name:", name );
            }
        });

        var Child = Parent.subclass({
            // inherit the constructor from parent
            constructor : Parent.prototype.constructor
        });

        var child01 = new Child();
        var child02 = new Child("11111`");


    </script>


</body>
</html>